"""
	石头剪刀布!
        目标:实现人机互动一起玩石头剪刀布
        1.控制录入石头剪刀布
        2.电脑随机生成石头剪刀布
        3.比较判断输赢
        4.输出结果
"""

import random as rm

player_choose = int(input("请出拳:(1.石头 2.剪刀 3.布)"))
"""
    randint(self, a, b)
    Return random integer in range [a, b], including both end points.
"""
cpu_choose =rm.randint(1,3)
print("cpu_choose:%s" %cpu_choose)

if (player_choose == 1 and cpu_choose == 2) or (player_choose == 2 and cpu_choose == 3) or (player_choose == 3 and cpu_choose == 1):
    print("电脑弱爆了!")
elif player_choose == cpu_choose:
    print("心有灵犀!")
else:
    print("不行,要和你决战到天亮!")
    
    
    
